﻿using PowerHub.MES.DTO.BasicData.DTO;
using PowerHub.MES.DTO.BasicData.QueryDto;
using PowerHub.MES.Entities.BasicData;
using PowerHub.MES.ReturnEntity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PowerHub.MES.IServices.IBasic
{
    /// <summary>
    /// 用户接口层
    /// </summary>
    public interface IBasicDataUserinfoServices
    {
        /// <summary>
        /// 用户登录
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public  Task<OperationResult<string>> apiLogin(QueryBasicData_UserinfoDTO query);

        /// <summary>
        /// 获取部门列表
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public Task<OperationPageResult<List<BasicData_Userinfo>>> GetBasicData_UserinfoPageListAsync(QueryBasicData_UserinfoDTO query);


        /// <summary>
        /// 添加部门
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public Task<OperationResult<object>> CreateBasicData_UserinfoAsync(BasicData_UserinfoDTO query);

        /// <summary>
        /// 批量删除部门
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public Task<OperationResult<object>> BatchDeletionBasicData_UserinfoAsync(List<string>? ids);

        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public Task<OperationResult<object>> UpdateBasicData_UserinfoAsync(BasicData_UserinfoDTO query);

    }
}
